<link type="text/css" href="/css/start/jquery-ui-1.8.21.custom.css" rel="Stylesheet" />	
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.21.custom.min.js"></script>
<script>
	$(function() {
		$( "#date_begin" ).datepicker({ dateFormat: "yy-mm-dd",firstDay: 1 });
		$( "#date_end" ).datepicker({ dateFormat: "yy-mm-dd",firstDay: 1 });
	});
	</script>
<form action="" method="post">
<?php if(!$this->cycleCheck){?>
<h1>Export File (For Shop)</h1>
<h2>Payroll cycle (<?php echo $this->dateStart;?> - <?php echo $this->dateEnd;?>)</h2><br/>
  <p>Begin 
    <input name="date_begin" id="date_begin" type="text" value = "<?php echo $this->dateStart;?>">
    
  </p>
  <p>End 
    <input name="date_end" id="date_end" type="text" value = "<?php echo $this->dateEnd;?>">
  </p>
  <p>
    <input type="submit" name="button" id="button" value="Submit" onclick="if(confirm('Have you back up your MYOB? If yes click ok')){} else {return false;};">
  </p>
 <?php }else{?>
 	<h1>You have confirmed all current payroll cycle jobs done, now you can close the window</h1>
 <?php }?>
</form>